package com.zhentao.model.common.buiness.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @author 86150
 * @TableName orders
 */
@TableName(value ="orders")
@Data
public class Orders implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户外键
     */
    @TableField(value = "ap_id")
    private Integer apId;

    /**
     * 商家外键
     */
    @TableField(value = "bu_id")
    private Integer buId;

    /**
     * 商品外键
     */
    @TableField(value = "product_id")
    private Integer productId;

    /**
     * 地址表外键
     */
    @TableField(value = "address_id")
    private Integer addressId;

    /**
     * 总价
     */
    @TableField(value = "total_price")
    private Double totalPrice;

    /**
     * 总数量
     */
    @TableField(value = "num")
    private Integer num;

    /**
     * 订单状态： 1待付款  2已付款  3代发货  4已发货  5待收货  6已收货  7已取消  8退货/退款
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 发货时间
     */
    @TableField(value = "shopping_time")
    private Date shoppingTime;

    /**
     * 收获时间
     */
    @TableField(value = "receiving_time")
    private Date receivingTime;

    @TableField(value = "track")
    private String track;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}